package JavaSEAdvance.day08_Collection;

import java.util.Collections;

/**
 * @author Xiao
 * @date 2021/7/25
 */
public class MyArrayListTest {
    /**
     *MyArrayList的测试类
     */
    public static void main(String[] args) {
        MyArratList<String> list = new MyArratList<>();
        list.add("123");
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
        list.add("456");
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
        System.out.println("------------");
        System.out.println(list);
    }
}
